package com.zk.application.web.ccontroller;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zk.service.org.api.IOrgService;
import com.zk.service.user.api.IUserService;

@RestController
@RequestMapping("web")
public class WebController {

	@Reference
	private IOrgService orgService;
	
	@Reference
	private IUserService userService;

	@GetMapping("/user")
	public String userService() {
		return "web:"+userService.test();
	}
	
	@GetMapping("/org")
	public String orgService() {
		return "web:"+orgService.test();
	}
}
